<?php

namespace rest\controllers;

use common\models\business\ImageBusiness;

class ImageController extends RestController {

    public function init() {
        parent::init();
    }

    public function actionGet() {
        
    }

    public function actionUpload() {
        
    }

    public function actionTest() {
        $dowload = ImageBusiness::dowload("http://ngoisaonet.info/wp-content/uploads/2014/09/bo-anh-hot-girl-nen-xem-2014-4.jpg");
        return $this->response($dowload);
    }

}
